package com.dhl.decorated;

/**
 * @title: Drink
 * @Author danghailiang
 * @Date: 2022/8/3 21:50
 * @Version 1.0
 */
public abstract class Drink {
    // 描述
    private String des;
    // 价格
    private float price = 0.0f;

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    /**
     * 计算价格---子类实现
     * @return 价格
     */
    public abstract float cost();
}
